package com.gwgreenway.member.controller;


import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/resource")
public class UserController {

//	@Resource
//	private UserService userService;

	/**
	 * 创建用户
	 * @return
	 */
	@RequestMapping(value = "/user", method = RequestMethod.GET)
	public String createUser(Authentication authentication) {
//		userService.save(user);
		System.out.println("user = [" + authentication + "]");
		return authentication.getName();
	}
}
